<?php

/**
 * Created by PhpStorm.
 * User: zen
 * Date: 2017/2/27
 * Time: 10:38
 */
namespace App\Controller;
class Api implements ApiInterface
{
    function __construct()
    {
    }

    function login()
    {

    }

    function getAccess()
    {
        // TODO: Implement getAccess() method.
    }

    function checkIp()
    {

    }

    function ack($code, $msg, $data=[])
    {
        //记录日志
        return json_encode(['ack' => $code, 'msg' => $msg, 'data' => $data]);
    }

    function __call($name, $arguments)
    {
        file_put_contents('1.txt', $_SERVER['HTTP_W']."\t\n".$_SERVER['HTTP_S']);
        return http_response_code(807);
    }
}